package org.tgcloud.group.web.exception;

import org.tgcloud.group.core.StringUtil;

/**
 * @Author SGY
 * @Date 2020/6/23 14:33
 * @Description // 无权限访问
 **/
public class UnAccessException extends RuntimeException {

    private static final long serialVersionUID = 1231239171014183L;

    public UnAccessException(Throwable e) {
        super(e.getMessage(), e);
    }

    public UnAccessException(String message) {
        super(message);
    }

    public UnAccessException(String messageTemplate, Object... params) {
        super(StringUtil.format(messageTemplate, params));
    }

    public UnAccessException(String message, Throwable throwable) {
        super(message, throwable);
    }

    public UnAccessException(Throwable throwable, String messageTemplate, Object... params) {
        super(StringUtil.format(messageTemplate, params), throwable);
    }
}
